package com.cakebackoffice.clientsoap.contract;

import org.ksoap2.serialization.NullSoapObject;
import org.ksoap2.serialization.SoapObject;

public class GPSLocation extends ContractObject {
    public float longitude;
    public float latitude;


    @Override
    public void fill(SoapObject soapObject) {
        if (!(soapObject.getPropertySafely("longitude") instanceof NullSoapObject))
            this.longitude = Float.parseFloat(soapObject.getPropertySafelyAsString("longitude"));
        if (!(soapObject.getPropertySafely("latitude") instanceof NullSoapObject))
            this.latitude = Float.parseFloat(soapObject.getPropertySafelyAsString("latitude"));

    }
}
